﻿using MediatR;
using W.Common.Enum;
using W.Warehouse.Domain.AllocationProduct;

namespace W.Warehouse.Api.Application.Command.AllocationCommand
{
    public class AllocationUpdateCommand:IRequest<int>
    {
        /// <summary>
        /// 调拨Id
        /// </summary>
        public int AllocationId { get; set; }
        /// <summary>
        /// 调拨单号
        /// </summary>
        public string? AllocationNo { get; set; }
        /// <summary>
        /// 调拨仓库Id
        /// </summary>
        public int? WarehouseId { get; set; }
        /// <summary>
        /// 调拨仓库
        /// </summary>
        public string? AWarehouseName { get; set; }
        /// <summary>
        /// 关联订单号
        /// </summary>
        public string? AssociateNumber { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string? SingleMaker { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime? SingleTime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? AllocationRemarks { get; set; }
        /// <summary>
        /// 单据状态
        /// </summary>
        public AuditStatus? AllocationStatus { get; set; }
        /// <summary>
        /// 审核原因
        /// </summary>
        public string? ExamineReason { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string? ExaminePeople { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? ExamineTime { get; set; }
        /// <summary>
        /// 公司Id
        /// </summary>
        public string? officeId { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public int? userid { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool? IsDelete { get; set; }

        public List<AllocationProductInfo> AllocationProdutesList { get; set; } = new List<AllocationProductInfo>();

    }
}
